/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package lintulaskenta.utils;

/**
 * Redirects the HttpRequest wrapped inside this object.
 */
public interface HttpRedirecterRajapinta {

	/**
	 * Redirects the HttpRequest wrapped inside this object to the URI given.
	 * @param uri
	 */
	public void redirectTo(String uri);

	/**
	 * Redirects the HttpRequest wraped inside this object to 404 page.
	 */
	public void redirectTo404();

	/**
	 * Redirects the HttpRequest wraped inside this object to 500 page.
	 */
	public void redirectTo500();

	/**
	 * Tells if this request has been redirected.
	 * @return if it has, false if not.
	 */
	public boolean hasBeenRedirected();

}

